package com.base.mapper.couponmapper;

import com.base.po.voip_coupon.CouponGoods;
import com.base.po.voip_coupon.CouponGoodsExample;
import java.util.List;

import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface CouponGoodsMapper {
    int countByExample(CouponGoodsExample example);

    int deleteByExample(CouponGoodsExample example);

    int insert(CouponGoods record);

    int insertSelective(CouponGoods record);

    List<CouponGoods> selectByExample(CouponGoodsExample example);

    List<CouponGoods> selectAll(@Param("page") Page page, @Param("parentId") String parentId, @Param("brandId") String brandId);

    List<CouponGoods> selectAllDetail(@Param("page") Page page, @Param("parentId") String parentId, @Param("brandId") String brandId);

    CouponGoods selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CouponGoods record, @Param("example") CouponGoodsExample example);

    int updateByExample(@Param("record") CouponGoods record, @Param("example") CouponGoodsExample example);

    int updateByPrimaryKeySelective(CouponGoods record);

    int countAll(@Param("parentId") String parentId, @Param("brandId") String brandId);
}